import { loginApi } from "./http/userApi";
function App() {
  const onLoginHandle = () => {
    loginApi({
      username: "admin",
      pwd: "admin",
    })
      .then((res) => {
        console.log("成功", res.data);
      })
      .catch((err) => {
        console.log("失败", err);
      });
  };

  return (
    <div className="App">
      <h3>App</h3>
      <div>
        <button onClick={onLoginHandle}>登录</button>
      </div>
    </div>
  );
}

export default App;
